<?php
/* @var $this CourseController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
    yii::t('models/News','Announcement'),
);

$this->menuitemName = yii::t("models/News","News");
$this->menuList = array();
$this->menuList[] = array(
    'label'=>yii::t("models/News","Center News"),
    'url'=>'display/centernews',
);
$this->menuList[] = array(
    'label'=>yii::t("models/News","Image Content News"),
    'url'=>'display/imagecontentnews',
);
?>
  <div class="panel panel-box" style="overflow:hidden;">
        <div class="panel-heading">
        <div class="titleimage">
            <h3 class="panel-title panel-title-font">
                <?php echo yii::t('models/News','Announcement'); ?>
            </h3>
        </div>
        </div>
        <div class="panel-body" style="padding:15px">
        <?php
            $this->widget('zii.widgets.grid.CGridView', array(
	            'id'=>'news-grid',
                'dataProvider'=>$dataProvider,
                'columns'=>array(
                    array(
                        'class'=>'CLinkColumn',
                        'header'=>yii::t('models/News','Title'),
                        'labelExpression'=>'$data->title',
                        'urlExpression'=>'Yii::app()->createURL("display/news", array("id"=>"$data->news_id"))',
                    ),
                    'user.user_name',
                    'views',
                    'published_date',
                ),
            ));
        ?>
        </div>
    </div>

